package com.lxy.cxcyxmmsbackend.sys.req;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageReq {
    private Integer pageNo = 1;
    private Integer pageSize = 10;

    private Map<String, String> keyWord;

    public Integer getCurrentPage() {
        return pageNo == null ? 1 : pageNo;
    }

    public void setCurrentPage(Integer currentPage) {
        this.pageNo = currentPage;
    }

    public Integer getPageSize() {
        return pageSize == null ? 5 : pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }


}
